package com.sky.mapper;

import com.sky.entity.AddressBook;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AddressBookMapper {

    List<AddressBook> findAddressBooks();

    void save(AddressBook addressBook);

    AddressBook getDefault(AddressBook addressBook);

    void updataStatus(AddressBook newAddressBook);

    AddressBook getById(Long id);

    void updateAddressBook(AddressBook addressBook);

    void delete(@Param("id") Long id,@Param("userId") Long userId);
}
